package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.ForeignLanguageMapper;
import com.ruoyi.baoming.domain.ForeignLanguage;
import com.ruoyi.baoming.service.IForeignLanguageService;

/**
 * 外语语种信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class ForeignLanguageServiceImpl implements IForeignLanguageService 
{
    @Autowired
    private ForeignLanguageMapper foreignLanguageMapper;

    /**
     * 查询外语语种信息
     * 
     * @param id 外语语种信息主键
     * @return 外语语种信息
     */
    @Override
    public ForeignLanguage selectForeignLanguageById(Long id)
    {
        return foreignLanguageMapper.selectForeignLanguageById(id);
    }

    /**
     * 查询外语语种信息列表
     * 
     * @param foreignLanguage 外语语种信息
     * @return 外语语种信息
     */
    @Override
    public List<ForeignLanguage> selectForeignLanguageList(ForeignLanguage foreignLanguage)
    {
        return foreignLanguageMapper.selectForeignLanguageList(foreignLanguage);
    }

    /**
     * 新增外语语种信息
     * 
     * @param foreignLanguage 外语语种信息
     * @return 结果
     */
    @Override
    public int insertForeignLanguage(ForeignLanguage foreignLanguage)
    {
        return foreignLanguageMapper.insertForeignLanguage(foreignLanguage);
    }

    /**
     * 修改外语语种信息
     * 
     * @param foreignLanguage 外语语种信息
     * @return 结果
     */
    @Override
    public int updateForeignLanguage(ForeignLanguage foreignLanguage)
    {
        return foreignLanguageMapper.updateForeignLanguage(foreignLanguage);
    }

    /**
     * 批量删除外语语种信息
     * 
     * @param ids 需要删除的外语语种信息主键
     * @return 结果
     */
    @Override
    public int deleteForeignLanguageByIds(Long[] ids)
    {
        return foreignLanguageMapper.deleteForeignLanguageByIds(ids);
    }

    /**
     * 删除外语语种信息信息
     * 
     * @param id 外语语种信息主键
     * @return 结果
     */
    @Override
    public int deleteForeignLanguageById(Long id)
    {
        return foreignLanguageMapper.deleteForeignLanguageById(id);
    }
}
